WPEverest\URMembership\Admin\Services\Stripe\StripeService D

Total Complexity 134
Dependencies 23
Dependents 7
Total lines 1,325
Lines of code 1,088
Logical lines of code 401
Comment lines 77
Methods 20
Properties 4

Methods 20

Method Rating Maintainability Complexity Lines of code
create_subscription()
D
19
34 263
process_stripe_payment()
B
29 16 150
update_order()
B
31 13 137
create_stripe_product_and_price()
A
37 11 78
handle_succeeded_invoice()
A
35 5 100
sync_coupon()
A
46 9 38
refund_subscription()
A
44 8 48
reactivate_subscription()
S
45 5 49
cancel_subscription()
S
45 5 48
create_stripe_price_for_existing_product()
S
48 4 35
sendEmail()
S
49 4 31
refund()
S
59 4 13
check_exists_product_in_stripe()
S
57 3 19
refund_transaction()
S
57 2 18
check_price_exists_in_stripe()
S
60 2 14
__construct()
S
61 2 11
get_stripe_settings()
S
63 2 10
handle_webhook()
S
66 2 9
validate_setup()
S
74 2 4
revert_subscription()
S
60 1 13